package com.itany.service.impl;

import com.itany.dao.UserDao;
import com.itany.dao.impl.UserDaoImpl;
import com.itany.entity.User;
import com.itany.service.UserService;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2022-11-15 9:39
 * Description：<描述>
 */
public class UserServiceImpl implements UserService {

    private UserDao userDao = new UserDaoImpl();

    @Override
    public List<User> findAll() {
        return userDao.selectAll();
    }

    @Override
    public User findById(int id) {
        return null;
    }

    @Override
    public void add(User user) {

    }

    @Override
    public void modify(User user) {

    }

    @Override
    public void removeById(int id) {
        userDao.deleteById(id);
    }
}
